<?php

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
#	FILE:			includes/custom/adminnewslettergroups.php
#	FUNCTION:		Custom handler for the Admin Newsletter Groups page
#	AUTHOR:			Cameron Morrow
#	CREATED:		30/08/2005
#
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# D A T A   F O R   N E W S L E T T E R   G R O U P S
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Table
$current_table = $PROJECT_DB_TABLES["newsletter_groups"];

# Field to sort browse on
$browse_sort_field = "ng_name";

# Field to group browse on
$browse_group_field = "";

# Is index numeric
$index_numeric = true;

# Index field
$index_field = "ng_id";

# Type name
$type_name = "Newsletter Group";

# Plural
$type_name_plural = "Newsletter Groups";

# Custom Columns
$custom_columns = array();

# Add custom column for editing users in this group
$custom_columns[] = array("Users", "\"<a href=\\\"javascript:editNewsletterGroupUsers('[ng_id]');\\\">Edit Users</a>\"");

# Actions
$custom_columns[] = generateAddEditColumn($index_field);

# Browse SQL
$browse_sql_additional_where_clauses = array();
$browse_sql_search_fields = array("ng_name");

# Edit SQL
$edit_sql_additional_selects = array();
$edit_sql_additional_tables = array();
$edit_sql_additional_where_clauses = array();

include("../includes/custom/adminhandler.php");

?>